package com.zc.designmodel.creative.builder;

/**
 * @author: zhuCan
 * @date: 2020/4/11 15:58
 * @description:
 */
public class Director {

  private ComputerBuilder builder;

  public Director(ComputerBuilder computerBuilder){
    this.builder=computerBuilder;
  }

  public void construct(String board,String cpu){
    builder.buildBoard(board);
    builder.buildCpu(cpu);
    builder.build();
  }
}
